package com.jnshu.service;

import com.jnshu.tools.resultUtils.ResultBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author pipiretrak
 * @date 2019/8/1 - 9:21
 */
@FeignClient(value = "academy-cute-person-service")
public interface UserService {

    @GetMapping(value = "/message/list")
    ResultBean messageList(@RequestParam(name = "title", required = false) String title,
                           @RequestParam(name = "messageType", required = false) Integer messageType,
                           @RequestParam(name = "status", required = false) Integer status,
                           @RequestParam(name = "object", required = false) Integer object,
                           @RequestParam(name = "pushTime", required = false) Integer pushTime,
                           @RequestParam(name = "pageSize", defaultValue = "10") int pageSize,
                           @RequestParam(name = "pageNo", defaultValue = "1") int pageNo);
}
